package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface SiteService {

	public Site saveSite(Site site);

	public Set<Site> loadSites();

	public Set<Site> loadReferenceSites(Set<Site> sites);

	public Set<Site> loadSitesByIdSet(Set<Integer> sitesId);

	public Map<String, ?> loadSiteObjectReferencedSet(Site site);

	public Map<String, ?> loadSiteClassReferencedSet(Site site);

	public void deleteSite(Site site);

	public void deleteSites(Set<Integer> deleteSitesId);

	public List<Site> findAllSites(Integer startResult, Integer maxRows);

	public Site findSiteByPrimaryKey(Integer id);

	public Integer countSites();

	public Integer countSites(CmiPagination page);

	public Integer countSitesByName(String queryName);

	public Integer countSitesByDetachedCriteria(CmiPagination page);

}
